package com.tensquare.friend.client;

import com.tensquare.friend.client.impl.UserClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(value = "tensquare-usr",fallback = UserClientImpl.class)
public interface UserClient {
    @PutMapping("/user/{userid}/{friendid}/{x}")
    public void updateByUserAndFriend(@PathVariable("userid") String userid, @PathVariable("friendid") String friendid, @PathVariable("x") int x);
}
